		$(function(){
		    //下载Excel
		/*    $("#uploadBtn").fileinput({
		        language: 'zh',
		        uploadUrl: '../Excel/output',
				showCaption: false,
		        allowedFileExtensions : ['xlsx', 'xls'],
				maxFilesNum: 1,
				browseClass: "btn btn-primary btn-lg",
				uploadAsync: true,
		        previewFileIcon: "<i class='glyphicon glyphicon-king'></i>"
		    }).on('fileuploaded',function(event, data, previewId, index){
		    	download(data.response.filepath,data.response.filename,data.response.sql);
		    	});*/
		    
		    //导入Excel
		    $('#inputBtn').fileinput({
		        language: 'zh',
		        uploadUrl: '../Excel/input',
				showCaption: false,
		        allowedFileExtensions : ['xlsx', 'xls'],
				maxFilesNum: 1,
				browseClass: "btn btn-primary btn-lg",
				uploadAsync: true,
		        previewFileIcon: "<i class='glyphicon glyphicon-king'></i>"
		    }).on('fileuploaded',function(event, data, previewId, index){
		    	alert(data.response);
	    	});
		});	
		function download(){
			window.location.href="../Excel/down.action?filename=sys_permission.xls&sql=select PERM_ID,PERM_CODE,PERM_NAME,IFNULL(URI,'') URI,PERM_TYPE,PARENT_ID,IFNULL(GRADE,0) GRADE,PERM_STATUS	 from sys_permission";
		}